//
//  upLoadAppApiRequest.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/14.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "upLoadAppApiRequest.h"
#import "ZFHeader.h"
@implementation upLoadAppApiRequest
+(void)requestupLoadApiInfoUser_id:(NSString *)user_id client_model:(NSString *)client_model client_os:(NSString *)client_os location:(NSString *)location network:(NSString *)network sucessBlock:(void (^)(NSDictionary *))successBlock failureBlock:(void (^)(NSInteger))failureBlock{
    
    NSDictionary *upLoadApiInfoDic = @{@"user_id":user_id,@"client_model":client_model,@"client_os":client_os,@"network":network,@"location":location};
    NSString *upLoadApiInfoStr = [ZFHttpTool sortBodyStr:upLoadApiInfoDic];

    
    [ZFHttpTool postWithURL:[NSString stringWithFormat:@"%@/user/postAppOpenRecord",SERVERIP] params:upLoadApiInfoDic bodyStr:upLoadApiInfoStr success:^(id responseObject) {
        
        NSLog(@"%@-----%@",responseObject,responseObject[@"msg"]);
        successBlock(responseObject);
    } failure:^(NSError *error) {
        
    }];
    
    
    
}
@end
